<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米商品详情练习</title>
    <style>
        body {
            background-color: #f5f5f5;
        }

        .detail {
            width: 240px;
            height: 260px;
            /* border: 1px solid red; */
            padding-top: 20px;
            padding-bottom: 20px;
            text-align: center;
            background-color: #fff;
        }

        .detail img {
            display: inline-block;
            width: 160px;
            height: 160px;
            margin-bottom: 18px;
        }

        .detail h3 {
            text-align: center;
            font-size: 14px;
            font-weight: 400;
            color: #333;
            margin-top: 0;
            margin-bottom: 2px;

        }

        .detail p {
            font-size: 12px;
            color: #b0b0b0;
            height: 18px;
            margin-top: 0;
        }

        .detail .price {
            font-size: 14px;
        }

        .new {
            color: #ff6700;
        }

        div:hover {
            box-shadow: 10px 10px 20px 10px rgba(0, 0, 0, .3);

        }
    </style>
</head>

<body>
    <div class="detail">
        <img src="../images/computer.webp" alt="">
        <h3>REDMI Book Pro 16 2025</h3>
        <p>80W 狂暴性能｜3.1K 165Hz 高刷高亮屏</p>
        <p class="price">
            <span class="new">6199元起</span>
            <del class="old">6499元</del>
        </p>
    </div>
    <!DOCTYPE html>
    <html lang="zh-CN">

    <head>
        <meta charset="UTF-8">
        <title>HTML 表格示例</title>
        <style>
            table {
                width: 100%;
                border-collapse: collapse;
                /* 合并边框 */
            }

            th,
            td {
                border: 1px solid #ddd;
                /* 单元格边框 */
                padding: 8px;
                /* 单元格内边距 */
                text-align: center;
                /* 文本居中 */
            }

            th {
                background-color: #f2f2f2;
                /* 表头背景颜色 */
            }
        </style>
    </head>

    <body>
        <h2>学生信息表</h2>
        <table>
            <thead>
                <tr>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>班级</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>张三</td>
                    <td>18</td>
                    <td>1班</td>
                </tr>
                <tr>
                    <td>李四</td>
                    <td>19</td>
                    <td>2班</td>
                </tr>
                <tr>
                    <td>王五</td>
                    <td>20</td>
                    <td>3班</td>
                </tr>
            </tbody>
            <tfoot>
                <tr>
                    <td>总计</td>
                    <td>57</td>
                    <td>3个班级</td>
                </tr>
            </tfoot>
        </table>
    </body>

    </html>
</body>

</html>